package com.HelpDog.src;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;




public class LoadingActivity extends Activity{
	
	Context mContext;
	MyTextToSpeech mTts = null;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.load);
	
		mContext = getApplicationContext();
		FS.Setting = new WriteSetting(getSharedPreferences(WriteSetting.tName, 0));
		MyTextToSpeech.mbEnable = FS.Setting.getVoiceState();
		Message msg = new Message();
		msg.what = 0;
		mHandler.sendMessageDelayed(msg, 2000);
	}
	
	Handler mHandler = new Handler() {
		@Override
		public void handleMessage(Message msg) {
			Intent intent = new Intent(mContext, HelpDogActivity.class);
			startActivity(intent);
			finish();
		}
	};
}

